package com.ruoyi.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_packet_log
 *
 * @author ruoyi
 * @date 2024-01-23
 */
public class SysPacketLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     *
     */
    @Excel(name = "")
    private String ip;

    /**
     *
     */
    @Excel(name = "")
    private Long wallpaperId;

    /**
     * 0 未下载 1 已下载
     */
    @Excel(name = "0 未下载 1 已下载")
    private Long isDownload;

    /**
     * 下载时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下载时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date downloadTime;

    /**
     * 获取系统
     */
    @Excel(name = "获取系统")
    private String os;

    /**
     * 获取品牌
     */
    @Excel(name = "获取品牌")
    private String phone;

    /**
     * 设备型号
     */
    @Excel(name = "设备型号")
    private String model;

    public String wallpaperName;

    public void setWallpaperName(String wallpaperName) {
        this.wallpaperName = wallpaperName;
    }

    public String getWallpaperName() {
        return wallpaperName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setWallpaperId(Long wallpaperId) {
        this.wallpaperId = wallpaperId;
    }

    public Long getWallpaperId() {
        return wallpaperId;
    }

    public void setIsDownload(Long isDownload) {
        this.isDownload = isDownload;
    }

    public Long getIsDownload() {
        return isDownload;
    }

    public void setDownloadTime(Date downloadTime) {
        this.downloadTime = downloadTime;
    }

    public Date getDownloadTime() {
        return downloadTime;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public String getOs() {
        return os;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getModel() {
        return model;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("ip", getIp())
                .append("wallpaperId", getWallpaperId())
                .append("isDownload", getIsDownload())
                .append("createTime", getCreateTime())
                .append("downloadTime", getDownloadTime())
                .append("os", getOs())
                .append("phone", getPhone())
                .append("model", getModel())
                .toString();
    }
}
